<?php
// 中间件配置
return [
    // 别名或分组
    'alias'    => [
        'check_user_or_jump' => app\middleware\CheckUserOrJump::class,
        'check_user_or_json' => app\middleware\CheckUserOrJson::class,
        'check_user_or_null' => app\middleware\CheckUserOrNull::class,
        'check_admin_or_jump' => app\middleware\CheckAdminOrJump::class,
        'check_admin_or_json' => app\middleware\CheckAdminOrJson::class,
        'site_info'          => app\middleware\SiteInfo::class,
    ],
    // 优先级设置，此数组中的中间件会按照数组中的顺序优先执行
    'priority' => [
        app\middleware\CheckUserOrJump::class,
        app\middleware\CheckUserOrJson::class,
        app\middleware\CheckUserOrNull::class,
        app\middleware\SiteInfo::class,
    ],
];
